import request from '@/utils/request'

// 列表
export function getMoneyList(query) {
	return request({
		url: '/bot/money/list',
		method: 'get',
		params: query
	})
}

// 列表
export function getMoneyOwnList(query) {
	return request({
		url: '/bot/money/ownList',
		method: 'get',
		params: query
	})
}

// 新增
export function addMoney(data) {
	return request({
		url: '/bot/money/add',
		method: 'post',
		data: data
	})
}

// 更新
export function updateMoney(data) {
	return request({
		url: '/bot/money/update',
		method: 'post',
		data: data
	})
}

// 删除
export function removeMoney(data) {
	return request({
		url: '/bot/money/remove',
		method: 'post',
		data: data
	})
}